package fr.afcepf.atod.loaning.services;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface IBorrowingCalculator {

	/**
	 * Calculate and return the constant amount of monthly payments to pay each
	 * month to repay a loan for a total <b>amount</b> over a period of
	 * <b>nbMonth</b> month with a monthly interest rate of <b>monthRatePct</b>
	 * percentage (divided by 100 in the formula).
	 * 
	 * @param amount
	 *            The amount to repay
	 * @param nb_month
	 *            The period to pay over
	 * @param month_rate_pct
	 *            The monthly interest rate
	 * @return The monthly fee
	 * */
	double getMonthlyFee(@WebParam(name = "amount") double amount,
			@WebParam(name = "nb_month") int nb_month,
			@WebParam(name = "month_rate_pct") double month_rate_pct);
}
